<?php
/**
 * Created by PhpStorm.
 * User: a
 * Date: 2016/6/3
 * Time: 10:04
 */

/**
 * 中文字符，并填充空格
 */
function report_switch($name,$num){
    $name=iconv("UTF-8","gbk//TRANSLIT",$name);
    $name=$name=str_pad($name,$num," ",STR_PAD_RIGHT);
    return $name;
}

/**
 * 报文，地址拼接,并填充空格
 * @param $province
 * @param $city
 * @param $district
 * @param $address
 */
function report_address($province,$city,$district,$address,$num){
    $province_array=C("province_array");
    $count=count($province_array);
    for($i=0;$i<$count;$i++){
        if($province==$province_array[$count]){

        }
    }
}